﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once
#include "GcmpCommandInterface.h"

namespace gcmp
{

    class GCMP_COMMAND_INTERFACE_EXPORT GcmpCommandState
    {
    public:
        // 在位编辑模式
        static bool IsInInPlaceEditMode();

        // 是不是在任何的一个编辑模式
        static bool IsInEditMode();

        /* 文档相关的判断函数*/
        static bool IsInDocumentEnvironment();
        static bool IsInProjectEnvironment();
        static bool IsInFamilyEnvironment();

    };
}
